export default {
  path: "/customer",
  redirect: "/customer/list",
  meta: {
    icon: "ri:information-line",
    // showLink: false,
    title: "客户管理",
    rank: 10
  },
  children: [
    {
      path: "/customer/list",
      name: "customerList",
      component: () => import("@/views/customer/Index.vue"),
      meta: {
        title: "客户列表",
        roles: ["admin", "sale"],
        showParent: true
      }
    },
    {
      path: "/customer/add",
      name: "customerAdd",
      component: () => import("@/views/customer/AddCustomer.vue"),
      meta: {
        title: "添加客户",
        roles: ["admin", "sale"],
        showParent: true,
        showLink: false
      }
    },
    {
      path: "/customer/update",
      name: "customerUpdate",
      component: () => import("@/views/customer/UpdateCustomer.vue"),
      meta: {
        title: "修改客户",
        roles: ["admin", "sale"],
        showParent: true,
        showLink: false
      }
    }
  ]
} satisfies RouteConfigsTable;
